//
//  JLHeadline.h
//  LIangeNews
//
//  Created by sun on 16/1/17.
//  Copyright © 2016年 sun. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^JLFinishedBlock)(id responseObject,NSError * error);
@interface JLHeadline : NSObject
/** 新闻标题 */
@property (nonatomic , copy) NSString *title;
/** 新闻摘要 */
@property (nonatomic , copy) NSString *digest;
/** 图片 */
@property (nonatomic , copy) NSString *imgsrc;
/** 新闻id */
@property (nonatomic , copy) NSString *docid;
/** 跟帖数量 */
@property (nonatomic,assign) int replyCount;
/** 多图数组(两张) */
@property (nonatomic,strong) NSArray *imgextra;
/** 添加一个图片类型属性,如果是大图,那么数值就为 1 */
@property (nonatomic,assign,getter = isBigImage) BOOL imgType;
-(instancetype)initWithDict:(NSDictionary *)dict;
+(instancetype)headlineWithDict:(NSDictionary *)dict;
+(void)headlineWithUrlString:(NSString *)urlString finished:(JLFinishedBlock)finished;
@end
